#ifndef HELPERS_H
#define HELPERS_H

#include <QObject>
#include <QWindow>


class QWidget;
class HelperPrivate;

class Helpers: public QObject
{
    Q_OBJECT

public:
    Helpers(QObject *parent = 0);
    ~Helpers();
    void activateOn(QWidget *topLevelWidget);
    void activateOnQmlWidget(QWindow *topLevelWidget);

    void removeFrom(QWidget *topLevelWidget);
    void removeQmlWidgetFrom(QWindow *topLevelWidget);


    void setWidgetMovable(bool movable);
    void setWidgetResizable(bool resizable);
    void setRubberBandOnMove(bool movable);
    void setRubberBandOnResize(bool resizable);
    void setBorderWidth(uint width);
    void setTitleHeight(uint height);
    bool widgetResizable();
    bool widgetMovable();
    bool rubberBandOnMove();
    bool rubberBandOnResisze();
    uint borderWidth();
    uint titleHeight();

protected:
    virtual bool eventFilter(QObject *obj, QEvent *event);

private:
    HelpersPrivate *d;
};

#endif // HELPERS_H
